﻿@model List<Day22EF.Models.HeroViewModel>
@{
    ViewBag.Title = "Heroes";
}

<div class="jumbotron">
    <h1>ASP.NET</h1>
    <p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
    <p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more &raquo;</a></p>
</div>

<div class="row">
    @foreach (var hero in Model)
    {
        <p>Hero Name: @hero.HeroName</p>
        <p>Affiliation Name: @hero.AffiliationName</p>
        <p>
            Power info<br />
            Name: @hero.PowerName<br />
            Type: @hero.PowerType
        </p>
        <p>@Html.ActionLink("Edit", "Edit", new { id = hero.UserId })</p>
    }
</div>